package com.bub.pay.core.entity.vo.merchant;

import com.bub.pay.core.entity.vo.user.GoogleVo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Getter
@Setter
public class ResetEmailVo extends GoogleVo {

    @NotBlank(message = "邮箱地址不能为空")
    @Email
    private String email;

    @NotBlank(message = "邮箱验证码不能为空")
    @Pattern(regexp = "[0-9]{6}",message = "邮箱验证码的格式应为6位数字")
    private String emailCode;

}
